<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<%@include file="../../common/common.jspf"%>
<script type="text/javascript" src="${ctx}/js/member/agent/reviewAgent.js"></script>

<style type="text/css">
.col-sm-3 {
	width: 30%;
	float: left;
}
input select{
    margin-left: -50px;
}
.col-sm-9 {
	width: 70%;
	float: right;
}
.img{
	width:200px;
	height:200px;
	margin-left: -34px;
}
</style>
</head>
<body>
	<div class="l_err" style="width: 100%; margin-top: 2px;"></div>
	<form id="form" name="form" class="form-horizontal" method="post"
		action="${ctx}/agent/saveAgent.shtml">
		<input type="hidden" class="form-control checkacc"
			value="${agent.id}" name="id" id="id">
		<input name='mId' value='${agent.mId }' type='hidden'/>
		<section class="panel panel-default">
		<div class="panel-body">
			<div class="form-group">
				<label class="col-sm-3 control-label" >公司名称</label>
				<div class="col-sm-9">
					<input type="text" class="form-control" readonly="readonly"
						placeholder="请输入会员名称" value="${agent.companyName}"
						name="companyName" id="companyName">
				</div>
			</div>
			<div class="line line-dashed line-lg pull-in"></div>
			<div class="form-group">
				<label class="col-sm-3 control-label">联系人</label>
				<div class="col-sm-9">
					<input type="text" class="form-control" readonly="readonly"
						placeholder="请输入电话" value="${agent.linkman}"
						name="linkman" id="linkman">
				</div>
			</div>
			<div class="line line-dashed line-lg pull-in"></div>
			<div class="form-group">
				<label class="col-sm-3 control-label">联系方式</label>
				<div class="col-sm-9">
					<input type="text" class="form-control" readonly="readonly"
						placeholder="请输入密码"  value="${agent.phone }"
						name="phone" id="phone">
				</div>
			</div>
			<div class="line line-dashed line-lg pull-in"></div>
			<div class="form-group">
				<label class="col-sm-3 control-label">代理商等级</label>
				<div class="col-sm-9">
					<%-- <input type="text" class="form-control"
						placeholder="请输入商品分类" value="${goods.classId}"
						name="classId" id="classId"> --%>
					<!-- <select class="form-control m-b" name="grade" id="grade" disabled="disabled"> -->
					<select class="form-control m-b" name="agentGrade" id="agentGrade">
						<option value="">--请选择--</option>
						<c:forEach var="item" items="${discount}">
							<option value="${item.grade}" <c:if test="${agent.agentGrade==item.grade}">selected</c:if> >${item.gradeName}</option>
						</c:forEach>
					</select>
				</div>
			</div>
			<div class="line line-dashed line-lg pull-in"></div>
			<div class="form-group">
			 <label class="col-sm-3 control-label">营业执照</label>
			 	<div><a href="${agent.businessLicence }"><img src="${agent.businessLicence }" height="200" width="200"/></a></div>
			</div>
		</div>
		<footer class="panel-footer text-right bg-light lter">
			<button type="submit"  class="btn btn-danger btn-s-xs" id="reject">拒绝</button>
			<button type="submit"  class="btn btn-success btn-s-xs" id="pass">通过</button>
		</footer> </section>
		<input name='reviewStatus' value='1' type='hidden' id='reviewStatus'/>
	</form>
	<script type="text/javascript">
		onloadurl();
	</script>
</body>
</html>